package com.arelikebrothers.demo.spring.aop.hello;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * Created by lennon on 26/05/2017.
 */
public class GreetingBeforeAdvice implements MethodBeforeAdvice{
    @Override
    public void before(Method method, Object[] objects, Object o) throws Throwable {
        System.out.println("How are you! Mr." + objects[0]);
    }
}
